public class StudentTest {
    public static void main(String[] args) {
        //创建对象
        //调用的空参构造
        Student s = new Student("张三",23);
        System.out.println(s.getname()+" "+s.getAge());
        s.setname("张三");
        System.out.println(s.getname());
    }
}
